#-------------------------------------------------------------------
# Project Invasion of the aliens 
# name game.py
# purpose main game loop
#
# authors Chris L'Heureux, Tyler Plante, Jackson Morse
# main author Chris L'Heureux
#
# created 12/3/12
# Copyright (C) Jackson M
# License New BSD\
#------------------------------------------------------------------  
import pygame, math, sys, random

class Sword():
    def __init__(self, position):
        self.surfaces = []
        self.surfaces += [pygame.image.load("rsc/Sword/Sword.png")]
        self.frame = 0
        self.maxFrame = len(self.surfaces)-1
        self.surface = self.surfaces[self.frame]
        self.rect = self.surface.get_rect()
        self.radius = self.rect.width/2
        self.place(position)
        self.notBroken = True
        self.hitCount = 10


	def Do_Damage(self, other):
        if (self.rect.right > other.rect.left 
            and self.rect.left < other.rect.right):
            if (self.rect.bottom > other.rect.top and 
                self.rect.top < other.rect.bottom):
                if (self.distToPoint(other.rect.center)
                    < self.radius + other.radius):
					skeleton.life -= 100
					Imp.life -= 80
					Monkey.life -= 70
					Fish.life -= 50
					Bat.life -= 40 
					Boss_Demon -= 2 
					Boss_Shark -= 2
					Boss_Hydra.life -= 2 
					Boss_Snake.life -= 2
					Boss_Spider.life -= 2
					
					
             
	def  __str__(self):
        return "I'm a Sword " + str(self.rect.center) 
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		